package com.lnking.lnkingplace.model.request.record.monitor;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class MonitorAddRequest {

    @NotNull(message = "场所名称不能为空")
    @NotBlank(message = "场所名称不能为空")
    private String placeName;

    private String phone;

    @ApiModelProperty(value = "测温时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime thermometryTime;

    @ApiModelProperty(value = "体温")
    private Float bodyTemperature;

    @ApiModelProperty(value = "有无症状")
    private String symptom;

    @ApiModelProperty(value = "核酸结果")
    private String result;

    @ApiModelProperty(value = "核酸检测时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "人员类型")
    private String personnelType;

    /**
     * 通过关联获取字段
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "岗位")
    private String post;

    @ApiModelProperty(value = "图片")
    private String photos;

    @ApiModelProperty(value = "房间号")
    private String room;
}
